package com.imooc.newretail.common.vo;

import lombok.Data;
import lombok.Getter;
import lombok.Setter;

/**
 * @program:new-retail-teach
 * @description:返回公共对象 View Object
 * @author:Hank.He
 * @create:2020-06-23 14:52
 **/
@Data
@Getter
@Setter
public class ResultVO<T> {
    public final static String SUCCESS = "0";
    public final static String FAIL = "1";
    private String code;
    private String msg;
    private T data;

    public ResultVO() {

    }

    public ResultVO(T data) {
        setCode(SUCCESS);
        setData(data);
    }
}
